﻿namespace AnyOffice.Model
{
    using System;

    public class UserPrivData
    {
        protected object _funcIdStr;
        protected int _privId = -1;
        protected string _privName = string.Empty;
        protected int _privNo = 10;

        public string FuncIdStr
        {
            get
            {
                return (string) this._funcIdStr;
            }
            set
            {
                this._funcIdStr = value;
            }
        }

        public bool FuncIdStrIsNull
        {
            get
            {
                return (this._funcIdStr == null);
            }
            set
            {
                if (value)
                {
                    this._funcIdStr = null;
                }
            }
        }

        public int PrivId
        {
            get
            {
                return this._privId;
            }
            set
            {
                this._privId = value;
            }
        }

        public string PrivName
        {
            get
            {
                return this._privName;
            }
            set
            {
                this._privName = value;
            }
        }

        public int PrivNo
        {
            get
            {
                return this._privNo;
            }
            set
            {
                this._privNo = value;
            }
        }
    }
}

